import request from '@/router/axios'

/*
 批量导入
 */
export function importStock(query) {
  return request({
    url: '/stock/order/',
    method: 'put',
    params: query
  })
}

/*
列表页检索
 */
export function fetchOrderList(query) {
  return request({
    url: '/stock/order/orderPage',
    method: 'post',
    data: query
  })
}

/*
订单修改
*/
export function updateOrder(query) {
  return request({
    url: '/stock/order',
    method: 'post',
    data: query
  })
}

/*
订单详情
*/
export function orderDetail(query) {
  return request({
    url: '/stock/order/orderPage',
    method: 'get',
    params: query
  })
}
/*
订单详情
*/
export function getOssToken(query) {
  return request({
    url: '/stock/ali/ossToken',
    method: 'get',
    params: query
  })
}

